﻿<%@ Page Language="C#" MasterPageFile="~/TrangChinh.master" AutoEventWireup="true" CodeFile="CapNhatBaiDang.aspx.cs" Inherits="CapNhatBaiDang" Title="Chia Sẻ Hình Ảnh" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="SignHeader">
        <h5>
            Thêm Album mới</h5>
    </div>
    <div class="Sign">
        <table>
            <tr>
                <td colspan="2">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="sty1">
                    Chọn tên menu
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlMenuID" AppendDataBoundItems="True" 
                        Width="150px">
                        <asp:ListItem Value="0">-- Menu --</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnLoc" runat="server" onclick="btnLoc_Click" Text="Lọc" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ErrorMessage="Chọn menu"
                        ControlToValidate="ddlMenuID" SetFocusOnError="true" Display="Static" CssClass="failureNotification"
                        InitialValue="0" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="sty1">
                    Chọn tên chủ đề
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlCategory" AppendDataBoundItems="true"
                        Width="185px">
                        <asp:ListItem Value="0">-- Category --</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="sty1">
                    Chọn tên thể loại
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlTheLoai" AppendDataBoundItems="true"
                        Width="185px">
                        <asp:ListItem Value="0">-- Chọn thể loại --</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="sty1">
                    Tên Album
                </td>
                <td>
                    <asp:TextBox ID="txtTenAlbum" runat="server" Width="185px" OnTextChanged="txtTenAlbum_TextChanged"></asp:TextBox>
                    <asp:Label ID="lbTenAlbum" runat="server" Text="( &lt; 200 ký tự)" ForeColor="Red"
                        Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top" class="sty1">
                    Mô tả cho Album
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtMoTa" runat="server" Width="185px" TextMode="MultiLine"
                        Height="40px" ontextchanged="txtMoTa_TextChanged"></asp:TextBox>
                    <asp:Label ID="lbMoTa" runat="server" Text="( &lt; 200 ký tự)" ForeColor="Red" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="sty1">
                    Ảnh đại diện
                </td>
                <td>
                    <asp:FileUpload ID="upImage" runat="server" BorderColor="Yellow" BorderStyle="Solid"
                        BorderWidth="1px" Width="200px" />
                    <asp:Button ID="btnUpload" runat="server" Text="Tải lên" CssClass="btnUpload" />
                </td>
            </tr>
            <tr>
                <td class="sty1">
                    &nbsp;
                </td>
                <td colspan="2">
                    <asp:TextBox ID="txtPath" runat="server" Width="204px" />
                    <asp:Label runat="server" ID="lblStatus" CssClass="status" />
                </td>
            </tr>
            <tr>
                <td class="sty1">
                </td>
                <td colspan="2">
                    <asp:Button ID="btnLuuAlbum" runat="server" Text="Lưu Album" CssClass="btn" OnClick="btnLuuAlbum_Click" />
                </td>
            </tr>
            <tr>
                <td class="sty1">
                </td>
                <td colspan="2">
                    <asp:Label ID="lbCreateAlbum" runat="server" ForeColor="Red" Text="*" 
                        Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <hr />
    <div class="imagelist">
    </div>
</asp:Content>